package com.yswy.app.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.yswy.domain.entity.TgCallBackConf;
import com.yswy.domain.entity.TgChannle;
import com.yswy.domain.entity.UserDeviceInfo;

public interface TgChannleService extends IService<TgChannle> {
    //判断是否扣量
    Boolean isDeduction(String channle, Integer price);

    //获取回传配置
    TgCallBackConf getTgCallBackConf(String channle);

    /**
     * 获取用户来源
     * @param ip
     * @param type 0 登录  1 关键事件
     * @return  0 巨量引擎  1快手
     */
    Integer getUserSource(Long userId ,String ip , Integer type);


    void delDeduction(String channle , String star , String stop);
}
